#include <ncurses.h>

int main()
{
    char c;
    int i = 0;

    initscr();
    while (c != 'x') {
        mvprintw(10, 10, "Hello Chardi!\n %d\n", i++);
        refresh();
        c = getch();
    }
    endwin();

    return 0;
}

